import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { MainPlanController } from './main-plan.controller'
import { MainPlanEntity } from './main-plan.entity'
import { MainPlanService } from './main-plan.service'
import { SubPlanEntity } from '../sub-plan/sub-plan.entity'
import { ClassEntity } from '~/modules/admin/manage/class/entities/class.entity'
import { StudentClassEntity } from '~/modules/admin/manage/student/entities/student-class.entity'
import { StudentEntity } from '~/modules/admin/manage/student/entities/student.entity'

@Module({
  imports: [TypeOrmModule.forFeature([
    MainPlanEntity, 
    SubPlanEntity, 
    ClassEntity,
    StudentClassEntity,
    StudentEntity
  ])],
  controllers: [MainPlanController],
  providers: [MainPlanService],
  exports: [MainPlanService],
})
export class MainPlanModule {}
